package xiaolong.lian.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xiaolong.lian.entity.Page;

import java.util.List;

@Repository
public interface PageDao {
    List<Page> getPagesByDocId(@Param("docId") String docId);

    Page getPageById(@Param("id") String id);

    int insertPage(@Param("id") String id, @Param("docId") String docId,
                   @Param("num")int num, @Param("url")String url);

    int deletePage(@Param("id")String id, @Param("num")int num, @Param("docId") String docId);

    String getUserTelOfPage(@Param("id") String id);
}
